package au.edu.uq.itee.engg2800.team19;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class SimpleAboutDialog extends JDialog {
  public SimpleAboutDialog(JFrame parent) {
    super(parent, "About JTerminal", true);

    Box b = Box.createVerticalBox();
    b.add(Box.createGlue());
    b.add(new JLabel("ENGG2800 Team Project"));
    b.add(new JLabel("By Geoff Popple, James Hinton & Yue Jie Hu"));
    b.add(new JLabel("At itee.uq.edu.au/engg2800"));
    b.add(Box.createGlue());
    getContentPane().add(b, "Center");

    JPanel p2 = new JPanel();
    JButton ok = new JButton("Ok");
    p2.add(ok);
    getContentPane().add(p2, "South");

    ok.addActionListener(new ActionListener() {

    	public void actionPerformed(ActionEvent evt) {
        setVisible(false);
      }
    });

    setSize(250, 150);
  }
}